<?php
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
// DLMan by Shedd Technologies International		  				//
// http://www.dlman.com | info@dlman.com							//
// Copyright 2003 by STI, All rights reserved.						//
// ---------------------------------------------------------------- //
// Usage of this software is governed by the terms of GPL. 	    	//
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//

require_once("../uis.php");
require_once("../config.php");
require_once("../functions.php");
//PURCHASE THANK YOU

print sheader();
$data = parse(template("orderthankyou"));
$data = addslashes($data);
eval("echo stripslashes(\"$data\");");
print $config->copypow;
print footer();

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//FUNCTIONS
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
/*
	Parse the template and replace variables with values
*/
function parse($code){
	global $PHP_SELF,$config,$content;
	$code=str_replace("{url}",$config->cs['forum_url'],$code);//$url
	$code=str_replace("{title}",$config->cs['title'],$code);//$title
	$code=str_replace("{site}",$config->cs['forum_title'],$code);//$site
	$code=str_replace("{PHP_SELF}",$PHP_SELF,$code);//$PHP_SELF
	$code=str_replace("{CONTENT}",$content,$code);//CONTENT
	$sql="SELECT sales_address FROM ".$config->dt['settings']."";
	$result=mysql_query($sql);
	$value=mysql_fetch_array($result);
	$code=str_replace("{sales}",$value['sales_address'],$code);//Sales Address
	return $code;
}
?>
